Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka connector #24

Closed
wants to merge 29 commits into from
Closed

Kafka connector #24

wants to merge 29 commits into from

Conversation

jonathanpmoraes
Copy link

This pull request introduces several significant changes, including the addition of new modules and enhancements to existing functionality. The key changes involve the integration of Kafka for logging, improvements to metrics tracking, and the addition of various helper modules to streamline the codebase.

Integration of Kafka for Logging:

  • Added kafkajs dependency to web/package.json and web/package-lock.json for Kafka integration. [1] [2] [3]
  • Implemented Kafka producer module in web/services/kafkaProducer.js to manage Kafka connection and send log messages.

Enhancements to Metrics Tracking:

  • Refactored web/services/appMetrics.js to include detailed comments, integrate with Kafka, and improve email validation and encoding. [1] [2] [3] [4]
  • Updated web/setupProxy.js to initialize Kafka producer, use new helper modules, and refine user info logging. [1] [2]

Addition of Helper Modules:

  • Created web/services/helpers/dateTimeHelper.js for standardized date and time formatting.
  • Created web/services/helpers/excludedEmails.js to centralize the list of excluded emails.
  • Created web/services/helpers/logFormatter.js to build enriched log data from user info.

Documentation and Code Comments:

  • Added comprehensive comments to various files, including web/src/auth/AuthContext.tsx, web/src/components/ErrorBoundary.tsx, web/src/components/GAInitializer.tsx, web/src/components/Login.tsx, web/src/components/LoginCallback.tsx, web/src/components/PrivateRoute.tsx, and web/src/components/ga4.tsx, to explain the purpose and functionality of each module. [1] [2] [3] [4] [5] [6] [7]

These changes collectively enhance the application's logging, metrics tracking, and overall maintainability.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

@jonathanpmoraes jonathanpmoraes deleted the kafka-connector branch March 7, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants